package java9_3;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestGou {
    public static void main(String[] args) {
        Gou g=new Tugou();
        System.out.println(g.name);//? xiaogou
        g.p();//gou
        Tugou gg=(Tugou)g;
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        System.out.println(gg.name);//tugou
        gg.p();//tugou

        try {
            g.bite2("吕洞宾");
        } catch (Exception e) {
            e.printStackTrace();
        }
        gg.bite2("小王");
    }
}
